<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@include file="../../common/includeBaseSet.jsp" %>
<%@include file="../../common/includeSystemSet.jsp" %>
<%@include file="../../common/operation_forbid.jsp" %>
<%@include file="../../common/jsVersion.jsp" %>
<!-- 右侧车位信息 -->
<div id="rightCarportDiv">
	<form id="baseCarportForm" method="POST" onsubmit="return false;">
	<div class="widget-main customBtn">	
		
		
		 <c:forEach var="btn" items="${permitBtn}">
        	<c:choose>
			<c:when test="${btn.permission=='estate:projectCarport:edit'}">
				<button type="button" id="btn_carportUpdate" class="btn btn-warning  btn-sm">
				<span class="glyphicon glyphicon-search">编辑</span>
			</button>
			&emsp;
			</c:when>
			<c:when test="${btn.permission=='estate:projectCarport:delete'}">
			<button type="button" id="btn_carportDel" class="btn btn-primary btn-sm">
			<span class="glyphicon glyphicon-minus">删除</span>
			</button>
			</c:when>
			</c:choose>
		</c:forEach>
		
	</div>
	<c:if test="${!empty ar.obj}">
	<input type='hidden' name='carportId' value="${ar.obj.id}" />
	</c:if>
	<c:if test="${!empty parentName}">
	<input type='hidden' name='parentName' value="${manageObject}" />
	</c:if>
	<c:if test="${!empty manageObject}">
	<input type='hidden' name='manageObject' value="${manageObject}" />
	</c:if>
	</form>
	<c:choose>
	<c:when test="${!empty ar.obj}">
	<table id="carportTable" class="table table-bordered table-hover" >
		<tr>
			<td style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;">房源详情</td>
		</tr>
		<tr>
			<td><b>管理对象</b>&emsp;&emsp;${manageObject}</td>
		</tr>
		<tr>
			<td><b>车位名称</b>&emsp;&emsp;${ar.obj.carportName}</td>
		</tr>
		<tr>
			<td><b>排序编号</b>&emsp;&emsp;${ar.obj.sort}</td>
		</tr>
		<tr>
			<td>
			<b>房产类型</b>&emsp;&emsp;
			<c:choose>
				<c:when test="${ar.obj.propertyType==1}">公寓</c:when>
				<c:when test="${ar.obj.propertyType==2}">别墅</c:when>
				<c:when test="${ar.obj.propertyType==3}">车位</c:when>
				<c:otherwise>其他</c:otherwise>
			</c:choose>
			</td>
		</tr>
		<tr>
			<td>
			<b>销售状态</b>&emsp;&emsp;
			<c:choose>
				<c:when test="${ar.obj.carportSalesStatus==1}">可售</c:when>
				<c:when test="${ar.obj.carportSalesStatus==2}">已售</c:when>
				<c:when test="${ar.obj.carportSalesStatus==3}">暂不可售</c:when>
				<c:otherwise>其他</c:otherwise>
			</c:choose>
			</td>
		</tr>
		<tr>
			<td><b>备&emsp;&emsp;注</b>&emsp;&emsp;${ar.obj.remark}</td>
		</tr>
	</table>
	</c:when>
	<c:otherwise>
	<table id="carportTable" class="table table-bordered table-hover" >
		<tr>
			<td style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;">车位详情</td>
		</tr>
		<tr>
			<td style="text-align: center;"><h1>${ar.resMsg}</h1></td>
		</tr>
	</table>
	</c:otherwise>
	</c:choose>
</div>
<script src="${jypath}/static/js/estate/carport/carport.js?v=${jsVersion}"></script>
